Skip to main content

Pie Chart Widget

A Pie chart widget based on the g2plot library. Can be changed to a Donut Chart from the Configurator.

Usage

Allows displaying of category data with Value. The value in LabelField must be a unique string or number. The values can be used to formatted in the Configurator.

Properties

PropertyTypeBindingDefaultDescription
DataINFOTABLE<Infotable with a column for Label and a column for Value to be displayed on the chart.
LabelFieldFIELDNAME<Name of the column in the Data infotable specifying the label data.
ValueFieldFIELDNAME<Name of the column in the Data infotable specifying the value data.
GlobalPropertiesJSON<A serialized JSON object that has global parameter names as its keys and data types as values. These are properties can be referenced when using expression formatting
DonutInnerLabelSTRING(localized)<Name of the inside label of a donut pie chart.
SelectionMode1STRINGnoneAllows specifying is selection is enabled within the chart.

Events

PropertyTypeBindingDescription
DoubleClickEVENT>Triggered when the widget is double clicked .

Expression Format context

When using Expression Format, other relevant fields can also be referenced.

value: STRING | NUMBER | DATETIME - For the label field

globalCtx: TWJSON - Any TWX value declared on the widget Global Properties and that has a value bound.

ctx: { data: INFOTABLE (entire dataset); row: INFOTABLE row } - Access to the entire dataset and the current row.

Footnotes

  1. SelectionMode can have the following values: None, Single, Multiple